<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserAddress extends Model
{
    protected $guarded = ['id'];

    protected $hidden = [
        'updated_at', 'openid',
    ];

    public function user()
    {
    	return $this->belongsTo(User::class);
    }

    public function getFullAddressAttribute()
    {
        return "{$this->provice} {$this->city} {$this->zone} {$this->address} {$this->truename} {$this->mobile}";
    }

   
}
